'use strict';

module.exports = appInfo => {
  const config = exports = {};

  config.cluster = {
    listen:{
      port:7002
    }
  }
  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1524022176639_465';

  // add your config here
  config.middleware = ['dataformat'];

  config.mysql = {
    client:{
      host:'localhost',
      port:'3306',
      user:'root',
      password:'1',
      database:'kuaidian'
    }
  }

  config.redis = {
    client:{
      port:6379,
      host:'localhost',
      password:'',
      db:1
    }
  }

  config.weappSDK = {
    appId:'wx025f5f4f0dc76263',
    appSecret:'603772ec1bc20eb9e76dcf85008f33e2'
  }

  config.security = {
    csrf:{
      enable:false
    }
  }
  


  return config;
};
